﻿using FEM.Result;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PBSD_Development
{
    /// <summary>
    /// 工况序列
    /// </summary>
    public class LoadCaseSeries
    {
        /// <summary>
        /// 工况集合
        /// </summary>
        private LoadCaseSet loadCaseSet { set; get; }

        /// <summary>
        /// 获得所有地震工况
        /// </summary>
        /// <returns></returns>
        public List<LoadCaseObj> GetGroundMotionLoadCaseList()
        {
            return (from locase in this.loadCaseSet.PlasticGMLoadCases select new LoadCaseObj(locase)).ToList();
        }

        /// <summary>
        /// 构造工况序列
        /// </summary>
        /// <param name="result"></param>
        public LoadCaseSeries(FEMResult result)
        {
            this.loadCaseSet = result.LoadCases;
        }
    }
}
